package com.atguigu.gulimall.search.entity.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2022-01-10-11:36
 */
@Data
public class SearchResultVo {
    /**
     *  查询到的所有商品信息
     */
    private List<SkuEsModel> products;

    /**
     *  当前页码
     */
    private Integer pageNum;
    /**
     *  总记录数
     */
    private Long total;
    /**
     *  总页码
     */
    private Integer totalPages;

    /**
     *  当前查到的结果，所有涉及的品牌
     */
    private List<BrandVo> brands;
    /**
     *  当前查到的结果，所有涉及的属性
     */
    private List<AttrVo> attrs;
    /**
     *  当前查到的结果，所有涉及的分类
     */
    private List<CatalogVo> catalogs;

//====================以上是返回给页面的信息===================//

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }


}
